export function removeNullOrEmpty(obj) {
  if (Object.keys(obj).length <= 0) return;
  const data = {};
  for (const key in obj) {
    if (obj[key] !== '' && obj[key] !== null) {
      data[key] = obj[key];
      if (typeof data[key] === 'string') {
        data[key] = data[key].replace(/(^\s*)|(\s*$)/g, '');
      }
    }
  }
  return data;
}
